package com.example.spring.design.bridge;

/**
 * @author: orange
 * @create: 2023-08-16 15:32
 * @description:
 */
public class BridgeClient {
    public static void main(String[] args) {
        Shape shape = factoryShape();
        System.out.println(shape);
    }

    private static Shape factoryShape() {
        Shape shape = new Square();
        shape.setShapeColor(new BlurShape());
        return shape;
    }
}
